package com.zkw.demo.reflect;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

/**
 * Created by Administrator on 2016/4/1.
 */
public class RefelectDemo {
    public static void main(String[] args) {
        Class clazz = Foo.class;
        Field[] fields = clazz.getDeclaredFields();
        for(Field field : fields){
            System.out.println(Modifier.isPublic(field.getModifiers()));
        }
    }
}
